import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class ETitleCategory
    
    export  class ETitleCategory
    {
        constructor(arg1: int)
        {
            
            this.__value = arg1;
            return;
        }

        public static __read(arg1: SerializeStream): ETitleCategory
        {
            var loc1=arg1.readByte();
            if (loc1 < 0 || loc1 >= 101) 
            {
                throw new MarshalException();
            }
            return ETitleCategory.convert(loc1);
        }

        public value(): int
        {
            return this.__value;
        }

        public __write(arg1: SerializeStream): void
        {
            arg1.writeByte(this.__value);
            return;
        }

        public static convert(arg1: int): ETitleCategory
        {
            return new ETitleCategory(arg1);
        }

        public static /* const */_ETitleCategoryAcupoint: int=2;

        public static /* const */_ETitleCategoryTransport: int=3;

        public static /* const */_ETitleCategoryOpenTreasure: int=4;

        public static /* const */_ETitleCategoryRetakeTreasure: int=5;

        public static /* const */_ETitleCategoryBossNormal: int=6;

        public static /* const */_ETitleCategoryBossElite: int=7;

        public static /* const */_ETitleCategoryBossEliteOver: int=8;

        public static /* const */_ETitleCategoryBossOver: int=9;

        public static /* const */_ETitleCategoryEACredit: int=10;

        public static /* const */_ETitleCategoryEARank: int=11;

        public static /* const */_ETitleCategoryBFKilled: int=12;

        public static /* const */_ETitleCategoryBFKill: int=13;

        public static /* const */_ETitleCategoryBFWeekHonourMost: int=14;

        public static /* const */_ETitleCategoryBFWeekKillMost: int=15;

        public static /* const */_ETitleCategoryBFWeekEvenCutMost: int=16;

        public static /* const */_ETitleCategoryFriendAmount: int=17;

        public static /* const */_ETitleCategoryGuildPosition: int=18;

        public static /* const */_ETitleCategoryWildKill: int=19;

        public static /* const */_ETitleCategoryPetType: int=20;

        public static /* const */_ETitleCategoryMount: int=21;

        public static /* const */_ETitleCategoryLevelFirst: int=22;

        public static /* const */_ETitleCategoryCopyFirst: int=23;

        public static /* const */_ETitleCategoryContribution: int=24;

        public static /* const */_ETitleCategoryWildKillCampOne: int=25;

        public static /* const */_ETitleCategoryWildKillCampTwo: int=26;

        public static /* const */_ETitleCategoryWildKillCampThree: int=27;

        public static /* const */_ETitleCategoryFlowerTotal: int=28;

        public static /* const */_ETitleCategoryWeek: int=29;

        public static /* const */_ETitleCategoryPetMap: int=30;

        public static /* const */_ETitleCategoryDefenseCopyExp: int=31;

        public static /* const */_ETitleCategoryCoinCopyEvenCut: int=32;

        public static /* const */_ETitleCategoryPlayerMerits: int=33;

        public static /* const */_ETitleCategoryTopLevel: int=34;

        public static /* const */_ETitleCategoryTopCarrer: int=35;

        public static /* const */_ETitleCategoryTopWeekHonor: int=36;

        public static /* const */_ETitleCategoryTopMagicTown: int=37;

        public static /* const */_ETitleCategoryTopGuildAsset: int=38;

        public static /* const */_ETitleCategoryTopPetGrowth: int=39;

        public static /* const */_ETitleCategoryArenaRank: int=40;

        public static /* const */_ETitleCategoryMarry: int=41;

        public static /* const */_ETitleCategoryArenaCross: int=43;

        public static /* const */_ETitleCategoryLevelSeal: int=44;

        public static /* const */_ETitleCategoryAchieve: int=45;

        public static /* const */_ETitleCategoryTopAcupoint: int=46;

        public static /* const */_ETitleCategoryTopRoot: int=47;

        public static /* const */_ETitleCategoryTopAchieve: int=48;

        public static /* const */_ETitleCategoryTowerSixty: int=42;

        public static /* const */_ETitleCategoryTopWeapon: int=50;

        public static /* const */_ETitleCategoryTopFightVal: int=51;

        public static /* const */_ETitleCategoryPetStrengthen: int=52;

        public static /* const */_ETitleCategoryCountry: int=53;

        public static /* const */_ETitleCategoryOthers: int=100;

        public static /* const */_ETitleCategoryLevel: int=1;

        public static /* const */_ETitleCategoryTopWuxingFight: int=49;

        public /* var */__value: int;
    }
